<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_pwr.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">wb32l003_pwr.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="wb32l003__pwr_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">/* Define to prevent recursive inclusion -------------------------------------*/</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#ifndef __WB32L003_PWR_H</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#define __WB32L003_PWR_H</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/* Includes ------------------------------------------------------------------*/</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;wb32l003.h&quot;</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment">/* Exported types ------------------------------------------------------------*/</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">/* Exported constants --------------------------------------------------------*/</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#define PWR_SLEEPENTRY_WFI              ((uint8_t)0x01)</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#define PWR_SLEEPENTRY_WFE              ((uint8_t)0x02)</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">/* Exported macro ------------------------------------------------------------*/</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#define IS_PWR_SLEEP_ENTRY(ENTRY) (((ENTRY) == PWR_SLEEPENTRY_WFI) || ((ENTRY) == PWR_SLEEPENTRY_WFE))</span></div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">/* Exported functions --------------------------------------------------------*/</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#ga13fe554295a807e058ada5ecbc213102">PWR_EnterSLEEPMode</a>(uint8_t SLEEPEntry);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#gae91b808c1d300d9c9abc2334ffe7ec92">PWR_EnterDEEPSLEEPMode</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#ga614e9a0c9e603c88fa1a1cc1503b4267">PWR_EnableSleepOnExit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#gadf9d3e5ac0108e29ab88766ace65f43a">PWR_DisableSleepOnExit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#ga2babd7229a89f9df0aa725dbdd8a92b4">PWR_EnableSEVOnPend</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___p_w_r.html#ga998eda017f94fcc7474c0cf6ebec6465">PWR_DisableSEVOnPend</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/*__WB32L003_PWR_H */</span><span class="preprocessor"></span></div><div class="ttc" id="group___p_w_r_html_ga614e9a0c9e603c88fa1a1cc1503b4267"><div class="ttname"><a href="group___p_w_r.html#ga614e9a0c9e603c88fa1a1cc1503b4267">PWR_EnableSleepOnExit</a></div><div class="ttdeci">void PWR_EnableSleepOnExit(void)</div><div class="ttdoc">Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:93</div></div>
<div class="ttc" id="group___p_w_r_html_ga998eda017f94fcc7474c0cf6ebec6465"><div class="ttname"><a href="group___p_w_r.html#ga998eda017f94fcc7474c0cf6ebec6465">PWR_DisableSEVOnPend</a></div><div class="ttdeci">void PWR_DisableSEVOnPend(void)</div><div class="ttdoc">Disables CORTEX M0+ SEVONPEND bit.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:129</div></div>
<div class="ttc" id="group___p_w_r_html_gadf9d3e5ac0108e29ab88766ace65f43a"><div class="ttname"><a href="group___p_w_r.html#gadf9d3e5ac0108e29ab88766ace65f43a">PWR_DisableSleepOnExit</a></div><div class="ttdeci">void PWR_DisableSleepOnExit(void)</div><div class="ttdoc">Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:105</div></div>
<div class="ttc" id="group___p_w_r_html_gae91b808c1d300d9c9abc2334ffe7ec92"><div class="ttname"><a href="group___p_w_r.html#gae91b808c1d300d9c9abc2334ffe7ec92">PWR_EnterDEEPSLEEPMode</a></div><div class="ttdeci">void PWR_EnterDEEPSLEEPMode(void)</div><div class="ttdoc">Enters Deep Sleep mode.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:72</div></div>
<div class="ttc" id="group___p_w_r_html_ga13fe554295a807e058ada5ecbc213102"><div class="ttname"><a href="group___p_w_r.html#ga13fe554295a807e058ada5ecbc213102">PWR_EnterSLEEPMode</a></div><div class="ttdeci">void PWR_EnterSLEEPMode(uint8_t SLEEPEntry)</div><div class="ttdoc">Enters Sleep mode.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:44</div></div>
<div class="ttc" id="group___p_w_r_html_ga2babd7229a89f9df0aa725dbdd8a92b4"><div class="ttname"><a href="group___p_w_r.html#ga2babd7229a89f9df0aa725dbdd8a92b4">PWR_EnableSEVOnPend</a></div><div class="ttdeci">void PWR_EnableSEVOnPend(void)</div><div class="ttdoc">Enables CORTEX M0+ SEVONPEND bit.</div><div class="ttdef"><b>Definition:</b> wb32l003_pwr.c:117</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
